home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 December / Chip_2001-12_cd1.bin / zkuste / tuning / download / xteq / setup.exe / {app} / plugins / XenOverclock3DFX.xpl < prev    next >
Text File  |  2001-03-17  |  2KB  |  63 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="7"
  3. "COUNT"="2"
  4. "UIPATH"="Hardware\Video Cards\3DFX"
  5. "NAME"="3DFX Graphic's Card Overclocker"
  6. "LANGUAGE"="VBScript"
  7. "TEXT 1"="Add Overclocking"
  8. "TEXT 2"="Remove Overclocking"
  9. "DESCRIPTION 1"="This will add the ability to overclock your 3DFX video card by adding a slider to your Display Properties dialog to tweak performance."
  10. "DESCRIPTION 2"="NOTE: In most cases this is harmless. If it causes problems simply reboot and set it back to its original setting. Still, you use this at your own risk. This may note work on all computer configurations."
  11. "DESCRIPTION 3"="Plugin Created by J. Scott Elblein"
  12. "VERSION"="1.01a"
  13. "WARNING"="You agree to use this at your own risk."
  14. "AUTHOR"="J. Scott Elblein"
  15. "COPYRIGHT"="All Rights Reserved. 2001"
  16. "CONTACTURL"="http://www.xenon-inc.com/"
  17. "COMMENT 1"="... Used with permission"
  18.  
  19. 'Hey XTeq dudes ... how about adding a Bookmarks drop-down list so you can go directly to favorite keys? ;)
  20.  
  21. 'Called when the Plugin is started
  22. SUB Plugin_Initialize
  23.  call setuielement(1,true)
  24.  
  25. END SUB
  26.  
  27. 'Called when the Plugin should validate the Data the user has entered
  28. SUB Plugin_CheckData(ElementIndex)
  29. END SUB
  30.  
  31. 'Called when the Plugin should apply the changes
  32. SUB Plugin_Apply(ElementIndex,ElementSubIndex)
  33.  
  34.  b = getuielement(1)
  35.  
  36.  if b = true then
  37.  
  38.     call RegWriteValue("HKLM\Software\3dfx Interactive\3dfx Tools\Installed\Tools\{AB040305-8AA1-11D2-8DD1-00104BB5EAD6}\CompleteRegistration",1,2)
  39.     MsgInformation("Overclocking added. Right click your desktop and choose Properties to use it.")
  40.     Restart
  41.  
  42.  else
  43.  
  44.     if regpathexists("HKLM\Software\3dfx Interactive\3dfx Tools\Installed\Tools\{AB040305-8AA1-11D2-8DD1-00104BB5EAD6}") then
  45.  
  46.        call RegDeletePath("HKLM\Software\3dfx Interactive\3dfx Tools\Installed\Tools\{AB040305-8AA1-11D2-8DD1-00104BB5EAD6}")
  47.        MsgInformation("Overclocking Removed.")
  48.        Restart
  49.  
  50.     else
  51.  
  52.        msginformation("Nothing to Delete")
  53.  
  54.     end if
  55.  
  56.  end if
  57.  
  58. END SUB
  59.  
  60. 'Called when the Plugin is about to be removed from memory
  61. SUB Plugin_Terminate
  62. END SUB
  63.